import fetch from '@/api'
// 获取账页列表
export function getAccountPageList(params) {
    return fetch({
        method: 'get',
        url: `/accountPage`,
        params,
    })
}
// 获取货主账页
export function getCargoOwnerAccount(params) {  
    return fetch({
        method:'get',
        url:`/cargoOwnerAccount`,
        params,
    })
}
// 查询货名-分页
export function getCargoNameList(params) {
    return fetch({
        method:'get',
        url:`/cargoName`,
        params
    })
}
// 更具货名查询属性
export function getPiecesCargo(params) {
    return fetch({
        method:'get',
        url:`/piecesCargo/query`,
        params
    })
}
// 获取存单列表
export function getAccountBill(params) {  
    return fetch({
        method:'get',
        url:`/accountPage/bill`,
        params,
    })
}

//新增
export function addAccountPage(data) {  
    return fetch({
        method:'post',
        url:`/accountPage`,
        data,
    })
}

// 编辑
export function updateAccountPage(id,data) {
    return fetch({
        method:'put',
        url:`/accountPage/${id}`,
        data,
    })
}

// 删除
export function deleteAccountPage(id) {
    return fetch({
        method:'delete',
        url:`/accountPage/${id}`,
    })
}